﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="DotBeer.UI.WPFClient.WindowPrintingOptions"
	x:Name="Window"
	Title="Printing options"
	Width="279" 
    Height="424" 
    Icon="/DotBeer.UI.WPFClient;component/Images/icon.ico" 
    ResizeMode="NoResize" 
    WindowStartupLocation="CenterScreen">

	<Grid x:Name="LayoutRoot" Background="{DynamicResource BrushWindowBackground}" SnapsToDevicePixels="True">
		<Grid.RowDefinitions>
			<RowDefinition Height="30"/>
			<RowDefinition Height="0.4*"/>
			<RowDefinition Height="30"/>
			<RowDefinition Height="0.4*"/>
			<RowDefinition Height="0.158*"/>
		</Grid.RowDefinitions>
		<TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" Text="Item builds:" TextWrapping="Wrap" Margin="5,0,0,0"/>
		<TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" Text="Skill builds:" TextWrapping="Wrap" Grid.Row="2" Margin="5,0,0,0"/>
		<ListView HorizontalAlignment="Stretch" 
                  Margin="5,5,5,5" 
                  Width="Auto" 
                  IsSynchronizedWithCurrentItem="True" 
                  Grid.RowSpan="1" 
                  Grid.Row="1" 
                  Style="{DynamicResource ListViewStyle}" 
                  ItemsSource="{Binding Path=ItemBuilds}">
			<ListView.View>
				<GridView>
                    <GridViewColumn Width="50" Header="Print">
                        <GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <CheckBox IsChecked="{Binding Path=Print, UpdateSourceTrigger=PropertyChanged}" Style="{DynamicResource CheckBoxStyle}"/>
                            </DataTemplate>
                        </GridViewColumn.CellTemplate>
                    </GridViewColumn>
                    <GridViewColumn Header="Item build name" Width="150">
                        <GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <TextBlock Text="{Binding Path=Build.Name}"/>
                            </DataTemplate>
                        </GridViewColumn.CellTemplate>
                    </GridViewColumn>
                </GridView>
			</ListView.View>
		</ListView>
		<ListView HorizontalAlignment="Stretch" 
                  Margin="5,5,5,5" 
                  Style="{DynamicResource ListViewStyle}" 
                  Width="Auto" 
                  IsSynchronizedWithCurrentItem="True" 
                  Grid.Row="3"
                  ItemsSource="{Binding Path=SkillBuilds}">
			<ListView.View>
				<GridView>
					<GridViewColumn Width="50" Header="Print">
                        <GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <CheckBox IsChecked="{Binding Path=Print, UpdateSourceTrigger=PropertyChanged}" Style="{DynamicResource CheckBoxStyle}"/>
                            </DataTemplate>
                        </GridViewColumn.CellTemplate>
                    </GridViewColumn>
                    <GridViewColumn Header="Skill build name" Width="150">
                        <GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <TextBlock Text="{Binding Path=Build.Name}"/>
                            </DataTemplate>
                        </GridViewColumn.CellTemplate>
                    </GridViewColumn>
				</GridView>
			</ListView.View>
		</ListView>
		<Button HorizontalAlignment="Left" VerticalAlignment="Center" Content="Print" Grid.Row="4" Style="{DynamicResource ButtonLightStyle}" Margin="5,0,0,0" Width="50" Height="20" Name="buttonPrint" Click="buttonPrint_Click" />
	</Grid>
</Window>